import request from "@/utils/request";
export interface Banner {
    _id: string;
    title: string;
    type: number;
    focus_img: string;
    link: string;
    sort: number;
    status: number;
}
export const getBannerApi = () => request.get("/admin/focus");
export const createBannerApi = (bannerInfo: Partial<Banner>) => request.post("/admin/focus", bannerInfo);
export const updateBannerApi = (bannerInfo: Partial<Banner>) => request.patch("/admin/focus", bannerInfo);
export const deleteBannerApi = (bannerInfo: Partial<Banner>) => request.delete("/admin/focus", { data: bannerInfo });
